package com.jeasonzhao.report.engine.irp;

import java.sql.SQLException;
import java.util.Properties;
import javax.sql.DataSource;

public interface IExternalDataSource
{
    /**
     * Provider a datasource from a external class.
     * @param props Properties Parameters that configured in XML files.
     * @return DataSource DataSource The datasource provided by this class implemention.
     * @throws SQLException If any error occured, throw a SQLException rather than other type of exceptions.
     */
    public DataSource getDataSource(Properties props)
        throws SQLException;
}
